<%@ page contentType="text/html; charset=utf-8" language="java"  errorPage="" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/login.css" type="text/css" rel="stylesheet" />
<link href="./css/btn.css" type="text/css" rel="stylesheet" media="screen" />
<script src="js/login.js" ></script>
<title>职教中心团建系统</title>
<script type="text/javascript">
function showMsg() {
	var msg = '${message}';
	if(msg!=null&&msg!=""){
		alert(msg);
	}
}
</script>

</head>

<body onload="showMsg()">
<span id="login_bg" style="height:220px;width:400px;"></span>
<div id="login" >
	<form action="login.action" method="post">
        <table style="height:170px;width:320px;margin-left:10px;">
        	<tr>
        		<td colspan="3" style="text-align:center;padding-top:40px;padding-bottom:20px;">
        		<input type="hidden" name="module" value="${param.module }" />
        		<s:if test="module==1"><img src="img/loginmember1.png" alt="Profile Pic" width="200px" height="45px"/></s:if>
        		<s:if test="module==2"><img src="img/logintestsys.png" alt="Profile Pic" width="200px" height="40px"/></s:if></td>
        		
        	</tr>
            <tr>
            	<td width="25%" class="code"><img src="img/person.png" alt="Profile Pic"/></td>
                <td width="55%" class="in" colspan="2"><input type="text" name="name" id="name" value="" onblur="checkname()" /></td>
            </tr>
            <tr>
            	<td class="code"><img src="img/passwd.png" alt="Profile Pic"/></td>
                <td class="in" colspan="2"><input type="password" name="password" id="password" value="" onchange="checkuserpassword()" /></td>
            </tr>
            <tr>
            	<td class="code" align="center" style="padding-top:10px;"><input type="submit" class="className" value=" 登 录 " /></td>
                <td class="code" align="center" style="padding-top:10px;"><input type="reset" class="className" value=" 重 置 " /></td>
                <td class="code" align="center" style="padding-top:10px;"><input type="button" class="className"  value="首 页" onclick="window.location='index.jsp'" /></td>
            </tr>   
        </table>
	</form>
</div>

<div id="copyright">
	Copyright <a href="#">cslg</a>. All Rights Reserved.
</div>
</body>
</html>
